﻿using System;
using System.Collections.Generic;
using System.Windows.Forms;

namespace CodePortal
{
    static class Program
    {
        /// <summary>
        /// 应用程序的主入口点。
        /// </summary>
        [STAThread]
        static void Main()
        {

            DevExpress.UserSkins.OfficeSkins.Register();
            DevExpress.UserSkins.BonusSkins.Register();
            DevExpress.Skins.SkinManager.EnableFormSkins();
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            //DevExpress.LookAndFeel.UserLookAndFeel.Default.SetSkinStyle("Lilian");
            //DevExpress.LookAndFeel.UserLookAndFeel.Default.SetSkinStyle("Liquid Sky");

            DevExpress.LookAndFeel.UserLookAndFeel.Default.SetSkinStyle("Office 2007 Blue");
        

            try
            {
                System.Threading.Thread.CurrentThread.CurrentUICulture = new System.Globalization.CultureInfo("zh-CHS");
                System.Threading.Thread.CurrentThread.CurrentCulture = new System.Globalization.CultureInfo("zh-CHS");
            }
            catch { }

            //Application.Run(new frmBRS());

            frmLogin login = new frmLogin();
            login.ShowDialog();
            if (login.DialogResult.Equals(DialogResult.OK))
            {
                login.Close();
                Application.Run(new frmShopping());
            }
             
        }
    }
}